<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        table ,tr,td {
            border: 1px solid #ccc;
            text-align:center;
        }
        table{
            width:800px;
        }
        tr{
            width:100px;
            height:40px;
            color: olivedrab;;
        }
    </style>
</head>
<body>
<a href="/addbook">【增加图书】</a>
<table>
    <tr>
        <!--<td>_id</td>-->
        <td>图书名</td>
        <td>作者</td>
        <td>价格</td>
        <td>操作</td>
    </tr>
    <% for(var i = 0;i
    <books.length ; i++){ %>
        <tr>
            <!--<td><%= books[i]._id%></td>-->
            <td><%= books[i].name%></td>
            <td><%= books[i].author%></td>
            <td><%= books[i].price%></td>
            <!--<td><a href="/edit?name=<%= books[i].name%>">修改</a></td>-->
            <td><a href="/edit?id=<%= books[i]._id%>">修改</a></td>
        </tr>
        <% } %>
</table>
</body>
</html>